//
//  CinemaTableViewCell.m
//  UI_周末豆瓣
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "CinemaTableViewCell.h"

@implementation CinemaTableViewCell


- (void)dealloc {
    [_AddressLabel release];
    [_TelephoneLabel release];
    [_RootImg release];
    [_NameLabel release];
    [super dealloc];
    
}



- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self creatCell];
        
        
    }
    return self;
}




- (void)creatCell {
    self.RootImg = [[UIImageView alloc] init];
    [self.contentView addSubview:_RootImg];
    self.AddressLabel = [[UILabel alloc] init];
    [self.RootImg addSubview:_AddressLabel];
    self.NameLabel = [[UILabel alloc] init];
    [self.RootImg addSubview:_NameLabel];
    self.TelephoneLabel = [[UILabel alloc] init];
    [self.RootImg addSubview:_TelephoneLabel];
}



- (void)layoutSubviews {
    _RootImg.frame = CGRectMake(15, 10, 350, 150);
    _RootImg.image = [UIImage imageNamed:@"bg_eventlistcell.png"];
    
    _AddressLabel.frame = CGRectMake(15, 60, 320, 40);
    _AddressLabel.backgroundColor = [UIColor clearColor];
    _AddressLabel.numberOfLines = 2;
    _AddressLabel.font = [UIFont systemFontOfSize:15];
    _AddressLabel.lineBreakMode = NSLineBreakByCharWrapping;
    
    _NameLabel.frame = CGRectMake(15, 5, 300, 40);
    _NameLabel.backgroundColor = [UIColor clearColor];
    _NameLabel.font = [UIFont systemFontOfSize:25];
    
    _TelephoneLabel.frame = CGRectMake(15, 120, 300, 20);
    _TelephoneLabel.backgroundColor = [UIColor clearColor];
    
    
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
